<template>
	<div class="content">
		<div class="title">{{data.articleTitle}}</div>
		<div class="info">
			<span>{{data.original == 2?data.reprint:data.auditName || data.authName}}</span>
			<span>{{filterData2(data.updateTime)}}</span>
		</div>
		<rich-text class="rich-text" :nodes="data.content"></rich-text>
	</div>
</template>
<script>
	import {filterData2} from '@/static/js/filter.js'
	export default{
		data(){
			return {
				data:{}
			}
		},
		onLoad(options){
			this.editId = options.id
			this.$api.ArticleInfo(options.id).then((res)=>{
				this.data = res.data.result
			})
		},
		methods:{
			filterData2
		}
	}
</script>
<style scoped lang="scss">
	.content{
		padding: 43upx 25upx;
		.title{
			font-size: 34upx;
			font-weight: bold;
			color: #000;
		}
		.info{
			margin-top: 20upx;
			color: #999999;
			padding-bottom: 24upx;
			border-bottom: 1upx solid #ECECEC;
			margin-bottom: 42upx;
			span{
				margin-right: 40upx;
				font-size: 26rpx;
			}
		}
		/deep/ .rich-text{
			line-height: 1.9;
			font-size: 30rpx;
		}
		/deep/ img{
			width: 100%;
		}
	}
</style>
